<?php
$c = $contents;
$dir = lang::get_domain_lang() == 'en' ? '' : 'dir="rtl"';
?>
<table itemscope="1" itemtype="http://schema.org/Person">
    <tr>
        <td style="text-align:center;width: 234px;vertical-align:top;background-image: url('http://<?=$res_server?>/res/img/paperTextureBgTile.png')">
            <div id="tp_leftbar">
                <div <?= $c['poster'] != 'http://'.$dl_server.'/dl/' ? 'rel="gallery"' : ''?>>
                    <a title="<?=$c['title']?> <?=$c['title_lang']?> Download Poster" href="<?=$c['large_poster']?>">
                        <img itemprop="image" id="tp_poster" alt="poster"
                             src="<?= $c['poster'] != 'http://'.$dl_server.'/dl/' ? udnutil::dlurl($c['poster']) : 'http://'.$res_server.'/res/img/no_poster.jpg'?>"/>
                    </a>
                </div>
                <div style="margin:10px auto">
                    <a href="#tp_section_similar" title="Find all <?=$c['title']?> Movies">
                        <?=lang::get('all_person_movies')?> <?=$c['title']?>
                    </a>
                </div>
                <div style="text-align: center; margin-bottom: 10px;">
                    <?=ad::get_ad("left_box_1");?>
                </div>
            </div>
        </td>
        <td style="background-image: url('http://<?=$res_server?>/res/img/paperTextureFooterEdgeTile.png');background-repeat:repeat-y;width: 20px;"> </td>
        <td style="vertical-align: top;">
            <!--background image-->
            <img itemprop="image" src="<?=udnutil::dlurl($c['large_poster'])?>"
                 style="background-size: cover;
                    opacity:0.4;display: block;
                    position: absolute;
                    width: 740px;
                    height: 1097px;
                    z-index: -2;
                    -moz-box-shadow: 0px 0px 0px rgba(0, 0, 0, .0);
                    -webkit-box-shadow: 0px 0px 0px rgba(0, 0, 0, .7);
                    box-shadow: 0px 0px 0px rgba(0, 0, 0, .0);"/>
            <img src="http://<?=$res_server?>/res/img/overlay.png"
                 style="background-size: cover;
                    position: absolute;display: block;
                    width: 740px;
                    height: 1097px;
                    z-index: -1;
                    -moz-box-shadow: 0px 0px 0px rgba(0, 0, 0, .0);
                    -webkit-box-shadow: 0px 0px 0px rgba(0, 0, 0, .7);
                    box-shadow: 0px 0px 0px rgba(0, 0, 0, .0);"/>
            <!--end of background image-->

            <div id="tp_mainbar2" style="width: 728px">
                <div style="text-align: right">
                    <a title="Report any issues by emailing udnweb@gmail.com" href="mailto:udnweb@gmail.com">Report Abuse / Copyright</a>
                </div>
                <!-- SECTION for TITLE -->
                <div id="tp_header">
                    <h1 itemprop="name" id="tp_title"><?=$c['title']?> <span <?=$dir?>><?=$c['title_lang']?></span></h1>

                    <!-- MAINBANNER-->
                    <?=ad::get_ad("center_banner_1");?>
                </div>

                <!-- SECTION for PLOT -->
                <?if($c['description'] != ''){?>
                <h3 <?=$dir?>><?=lang::get('profile')?></h3>
                <p <?=$dir?> itemprop="description"><?=$c['description']?></p>
                <?}?>

                <!-- SECTION for TRAILERS -->
                <script type="text/javascript">
                    searchYoutube("<?=$c['title']?> movies", 'tp_trailer');
                </script>
                <div itemprop="trailer" id="tp_trailer" class="lightBorder">
                    <img src="http://<?=$res_server?>/res/img/ajax-loader.gif" />
                    Loading YouTube videos...
                </div>
                <div style="height: 20px;" class="tp_clear"></div>

                <?=ad::get_ad("center_banner_3");?>
                <div class="tp_clear"></div>

                <!-- SECTION for PHOTO GALLERY -->
                <?if($c['images']){?>
                <h3 <?=$dir?>><?=lang::get('gallery')?></h3>
                <div id="tp_gallery" rel="gallery">
                    <ul>
                        <?foreach($c['images'] as $image){?>
                        <li>
                            <a href="<?=udnutil::dlurl($image['original'])?>">
                                <img class="lazy" src="http://<?=$res_server?>/res/img/movie.png" data-original="<?=udnutil::dlurl($image['thumbnail'])?>"/>
                            </a>
                        </li>
                        <?}?>
                    </ul>
                    <div class="tp_clear"></div>
                </div>
                <?}?>

                <!-- SECTION for SIMILAR -->
                <?if($c['filmography']){?>
                <h3 <?=$dir?> id="tp_section_similar"><?=lang::get('filmography')?></h3>
                <div id="tp_similar">
                    <ul>
                        <?foreach($c['filmography'] as $m){?>
                        <li>
                            <a itemscope="1" itemtype="http://schema.org/Movie"
                               title="<?=$m['title']?> <?=$m['year']?>"
                               href="?movieid=<?=$m['movieid']?>&amp;title=<?=str_replace(' ', '-', $m['title'])?>-<?= $m['year']?>-Torrent-Download-dvdrip-brrip-720p-1080p-subs-bluray-3d">
                                <img itemprop="image" alt="" class="lazy" src="http://<?=$res_server?>/res/img/movie.png" data-original="<?= $m['poster'] != 'http://'.$dl_server.'/dl/' ? udnutil::dlurl($m['poster']): 'http://'.$dl_server.'/res/img/no_poster.jpg'?>"/>
                            </a>
                        </li>
                        <?}?>
                    </ul>
                    <div class="tp_clear"></div>
                </div>
                <?}?>
            </div>

        </td>
    </tr>
</table>